package com.syh.jn.scm.dto.operation.system.permission;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionVo implements Serializable {

  /**
   * id
   */
  private Long id;
  /**
   * 权限名称
   */
  private String permissionName;
  /**
   * 拼接:url权限+==+方法权限
   * 通用则标明为*
   */
  private String detail;
  /**
   * url权限:supplier:create
   */
  private String permissionUrl;
  /**
   * 方法权限: POST|GET|DELETE|PUT|PATCH
   */
  private String permissionMethod;
  /**
   * 权限模块
   */
  private Long typeId;
  /**
   * 权限模块名称
   */
  private String typeName;

  private String permissionTypeName;

	private String uuid;

	private Short del;

	public String getDetail() {
		return permissionUrl+(permissionMethod !=null? "=="+permissionMethod:"");
	}
}
